package com.spddr.pmos.cxf;

import java.text.ParseException;
import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;

import com.spddr.pmos.jpa.PowerGridPlanForPlant;

import cn.seqdata.cxf.repos.JaxrsRepository;

@Path("/powergridplan")
public interface JaxrsPowerGridPlanForPlant extends JaxrsRepository<PowerGridPlanForPlant,Long> {
	@PUT
	@Path("/")
	default <S extends PowerGridPlanForPlant> S save(S entity) {
		return getRepository().save(entity);
	}
	@GET
	@Path("/all")
	List<PowerGridPlanForPlant> findAll(@QueryParam("id")Long id)throws ParseException;
	
	@PUT
	@Path("/saveall/{param}")
	Integer saveall(@PathParam("param") String param);
}
